﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using COFE.Core;
using COFE.Core.Entry;

namespace COFE.Core.Lister
{
    /// <summary>
    /// PropertyProvider that return nothing.
    /// </summary>
    public class NullPropertyProvider : IPropertyProvider
    {
        public static NullPropertyProvider Create() { return new NullPropertyProvider(); }


        public IEnumerable<object> GetSupportedProperty()
        {
            yield break;
        }

        public PropertySupportOptions GetPropertySupportOptions(object property)
        {
            return PropertySupportOptions.None;
        }

        public PropertyPair GetProperty(object propertyType)
        {
            throw new KeyNotFoundException();
        }

        public void SetProperty(object propertyType, object value)
        {
            
        }

        public void Refresh()
        {
            throw new NotImplementedException();
        }



        IEnumerable<object> IPropertyProvider.GetSupportedProperty()
        {
            yield break;
            //throw new NotImplementedException();
        }

       
    }
}
